package com.hong.concurrent.chapter1;

/**
 * 单例模式
 */
public class SingletonObject1 {
    //创建对象
    private static final SingletonObject1 instance = new SingletonObject1();
    //构造方法
    private SingletonObject1(){

    }
    //获取方法
    public static SingletonObject1 getInstance() {
        return instance;
    }
}
